/*
 * ViewTableRow.h
 *
 *  Created on: 2011-1-8
 *      Author: Administrator
 */

#ifndef VIEWTABLEROW_H_
#define VIEWTABLEROW_H_

#include "ListItem.h"

class CListBox;
class TViewTableHeadRowData;

class CViewTableRow : public CListItem
	{
public:
    static CViewTableRow* NewL(const CListBox* aOwner,TViewTableHeadRowData* aRowData);
	static CViewTableRow* NewLC(const CListBox* aOwner,TViewTableHeadRowData* aRowData);
	virtual ~CViewTableRow();
	
public:
	void Draw(CWindowGc& gc, const TRect& aRect) const;
	//void DrawFocusEffect(CWindowGc& gc, const TRect& aRect) const;
	void setColumnWidths(RArray<TInt> aColumnWidths);
	void SetLayout();
	TViewTableHeadRowData* getRowData();
	
protected:
	CViewTableRow();
	void ConstructL(const CListBox* aOwner,TViewTableHeadRowData* aRowData);
	
private:
	TViewTableHeadRowData* iRowData;//not own
	};

#endif /* VIEWTABLEROW_H_ */
